#include<stdio.h>
#include "com_xuwei_jni_objectoper_MethodAccess.h"

JNIEXPORT void JNICALL Java_com_xuwei_jni_objectoper_MethodAccess_nativeMethod
(JNIEnv *env, jobject obj) {
	jclass cls = (*env)->GetObjectClass(env, obj);
	jmethodID mid =
		(*env)->GetMethodID(env, cls, "callback", "()V");
	if (mid == NULL) {
		return; /* method not found */
	}
	printf("In C\n");
	(*env)->CallVoidMethod(env, obj, mid);
}


